<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title></title>
</head>

<body>
<aside class="Hui-aside" th:fragment="left">
    <input runat="server" id="divScrollValue" type="hidden" value=""/>
    <div class="menu_dropdown bk_2">

        <dl th:each="model : ${menuList}" th:if="${model.type} == '0'">
            <dt>
                <i class="Hui-iconfont" th:if="${#strings.isEmpty(model.icon)}">&#xe616;</i>
                <i class="Hui-iconfont" th:unless="${#strings.isEmpty(model.icon)}"
                   th:utext="${model.icon}">&#xe616;</i>
                <span th:text="${model.name}"></span>
                <i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i>
            </dt>
            <dd>
                <!-- 二级菜单 -->
                <div class="submenu_dropdown bk_2">
                    <dl th:each="submenu : ${menuList}" th:if="${submenu.type} == '3' and ${submenu.parentId} == ${model.id}">
                        <dt class="submenu">
                            <i class="Hui-iconfont" th:if="${#strings.isEmpty(submenu.icon)}">&#xe616;</i>
                            <i class="Hui-iconfont" th:unless="${#strings.isEmpty(submenu.icon)}"
                               th:utext="${submenu.icon}">&#xe616;</i>
                            <span th:text="${submenu.name}"></span>
                            <i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i>
                        </dt>
                        <dd>
                            <ul>
                                <li th:each="submenuchild : ${menuList}" th:if=" ${submenuchild.parentId} == ${submenu.id}">
                                    <a data-href="/admin/article/list" data-title="资讯列表" href="javascript:void(0)"
                                       th:attr="data-href=${submenuchild.url},data-title=${submenuchild.name}" th:text="${submenuchild.name}">资讯列表</a>
                                </li>
                            </ul>
                        </dd>
                    </dl>
                </div>
                <!-- 一级菜单下的直属栏目 -->
                <ul>
                    <li th:each="child : ${menuList}" th:if=" ${child.parentId} == ${model.id} and ${child.type} == '1'">
                        <a data-href="/admin/article/list" data-title="资讯列表" href="javascript:void(0)"
                           th:attr="data-href=${child.url},data-title=${child.name}" th:text="${child.name}">资讯列表</a>
                    </li>
                </ul>
            </dd>
        </dl>
    </div>
</aside>
</body>
</html>